package cn.edu.fzu.homemaking.company.domain.entity;

import cn.edu.fzu.homemaking.company.domain.enums.DemandStatusEnum;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author wanjie
 * @version 1.0
 */
@Data
public class Demand {
    private Long id;

    //用户id
    private Long userId;

    //关联服务标签
    private Long labelId;

    //需求描述
    private String demand;

    //约定时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    //地址
    private String address;

    //人数
    private Integer person;

    //一口价
    private BigDecimal price;

    //联系人姓名
    private String name;

    //联系电话
    private String phone;

    //邮件地址
    private String email;

    //状态
    private DemandStatusEnum status;

    //创建时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
